package view;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import server.FirewallSession;

/**
 * Logger window panel
 */
public class LoggerGlobalPanel extends JPanel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4929219520694617611L;
	private LoggerGlobalTable loggerGlobal = null;
	
	/**
	 * C'tor
	 */
	public LoggerGlobalPanel(FirewallSession UI)
	{	
		setLayout(new BorderLayout());

		/* Label */
		JLabel label = new JLabel("Global Logger:");
		add(label, BorderLayout.NORTH);
	
		/* Header */
		loggerGlobal = new LoggerGlobalTable(UI);
		add(loggerGlobal.getLoggerGlobalTableHeader(), BorderLayout.CENTER);
		loggerGlobal.getTableHeader().setReorderingAllowed(false);

		/* Table */
		JScrollPane scrollpane = new JScrollPane(loggerGlobal);
		scrollpane.getViewport().setPreferredSize(new Dimension(100,100));
		add(scrollpane,  BorderLayout.SOUTH);
	}
}
